Skip to content

aarch64 implement brz,brnz,br_icmp for i128 values#3002

Merged
cfallin merged 3 commits into
bytecodealliance:mainfrom
afonso360:aarch64-i128-br
Jun 21, 2021
Merged

aarch64 implement brz,brnz,br_icmp for i128 values#3002
cfallin merged 3 commits into
bytecodealliance:mainfrom
afonso360:aarch64-i128-br

Conversation

@afonso360
Copy link
Copy Markdown
Contributor

Hey,

This PR implements a few branches for i128 values.

It also cleans up a bit of duplicated logic for lowering icmp

Lowering icmp was duplicated across callers that only cared about
flags, and callers that only cared about the bool result.

Merge both callers into `lower_icmp` which does the correct thing
depending on a new IcmpOutput parameter.
The previous commit deduplicated the icmp impl, so we reuse that
but make modifications where we don't need to set the results.
@github-actions github-actions Bot added cranelift Issues related to the Cranelift code generator cranelift:area:aarch64 Issues related to AArch64 backend. labels Jun 19, 2021
Copy link
Copy Markdown
Member

@cfallin cfallin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, especially the very thorough tests!

I have one comment below on a possible optimization and am curious what you think, but am happy with this either way.

Comment thread cranelift/filetests/filetests/isa/aarch64/condbr.clif
@cfallin cfallin merged commit 18cd2f6 into bytecodealliance:main Jun 21, 2021
@afonso360 afonso360 deleted the aarch64-i128-br branch June 25, 2021 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift:area:aarch64 Issues related to AArch64 backend. cranelift Issues related to the Cranelift code generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants